public class Shuzu_yiwi {
    public static void main(String[] args) {
       int arr[] = {1,2,3,4,5,6,7,8,9,10};
       int i;
       int tmp = arr[0];
       for(i=0;i<10;i++)
       {
           if(i<9)
           arr[i] = arr[i+1];
           else
               arr[i] = tmp;
       }
       for(i=0;i<10;i++)
       {
           System.out.printf("%d ",arr[i]);
       }

    }
}
